package common;

import java.io.Serializable;
import java.util.List;

public interface  BaseDao   {

	public <T> T  get(Class<T> cls ,Serializable ID);
	public <T> void update(T t);
	public <T> List<T> findAll(String hql, Object... values);
	public <T>  List<T>  findAll(String hql,int firstResult,int maxResult,Object... values);
	public <T> void delete(T t);
	public <T> void  executeHql(String hql  ,Object...values );
	public <T> void save(T t);
	public <T> T  findOneByHql(String hql ,Object... values);
	public Long count(String hql,Object... values);
}
